<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/member/member/member.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <%--<link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/skins/laydate.css">--%>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
    <style>
        .fixed-table-toolbar {
            top: -2px;
            right: 160px;
        }

        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }

        .btn-secondary:not(:disabled):not(.disabled).active:focus, .btn-secondary:not(:disabled):not(.disabled):active:focus, .show>.btn-secondary.dropdown-toggle:focus{
            box-shadow:0 0 0 0.2rem rgb(108 117 125 / 0%);
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>会员管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>会员列表</strong>' +
            '</li>' +
            '</ol>';
    });


    var has_add = '';
    var has_edit = '';
    var has_delete = '';
    var MemberManager_member_look =false;
    var MemberManager_member_update =false;
</script>


<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="mobile" name="mobile" type="text" class="form-control shortInput"
                           placeholder="手机号码">
                    <input id="nickname2" name="nickname2" type="text" class="form-control shortInput input-distance"
                           placeholder="用户姓名">
                    <button class="btn btn-success input-distance" onclick="member.reLoad()">查询</button>
                    <button class="btn btn-success input-distance" style="margin-left: 20px; display: none;" onclick="member.getCheckedRoles()">选择用户</button>
                    <button class="btn btn-success exportBtn" style="margin-left: 20px;" onclick="member.exportMemberInfo()">导出</button>
                </div>
            </div>
            <div class="table-responsive" style="z-index: 1;">
                <table id="exampleTable" style="word-break:break-all;" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
</div>
<shiro:hasPermission name="MemberManager_member_look">
    <script>
        MemberManager_member_look = true;
    </script>
</shiro:hasPermission>
<shiro:hasPermission name="MemberManager_member_update">
    <script>
        MemberManager_member_update = true;
    </script>
</shiro:hasPermission>
<script type="text/javascript">
    //读取缓存
    var cacheOffset = 1;
    window.addEventListener('pageshow',function (event) {
        let memberPageCache = localStorage.getItem("memberPageCache");
        let data = JSON.parse(memberPageCache);
        $("#mobile").val(data.mobile);
        $("#nickname2").val(data.nickname2);
        cacheOffset  =  data.offset;
        localStorage.removeItem("memberPageCache");
        member.init();
    })
    member.init();
</script>
</body>
</html>
